<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内容页</title>
    <script src="/static/js/jquery-1.12.4.min.js"></script>
    <script>
        $(function () {

             $('#but').click(function () {

                 $.ajax(
                 {
                     'url':'/clear',
                     'type':'post',
                     'dataType':'json'
                 }

             ).success(function (data) {

                 if(data.nub == 0){
                location.href = '/login'}
             })

             })
        })


    </script>

</head>
<body>
欢迎登录{{ username }}<br>
<input type="button" id="but" value="清除缓存">


</body>
</html>